<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo htmlspecialchars($title); ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo htmlspecialchars($_SERVER['BASE_URL']); ?>res/admin.css"  />
<script type="text/javascript" src="<?php echo htmlspecialchars($_SERVER['BASE_URL']); ?>res/admin.js"></script>
</head>
<?php

function getStyleBrowser(){
    if(strpos($_SERVER["HTTP_USER_AGENT"], "MSIE 7.0") !== false){
        return "ie7";
    }elseif(strpos($_SERVER["HTTP_USER_AGENT"], "MSIE 6.0") !== false){
        return "ie6";
    }elseif(strpos($_SERVER["HTTP_USER_AGENT"], "MSIE 8.0") !== false){
        return "ie8";
    }elseif(strpos($_SERVER["HTTP_USER_AGENT"], "Gecko") !== false){
        return "gecko";
    } else {
        return "";
    }
}

?>
<body class="<?php echo getStyleBrowser(); ?>">

<div id="wrap">

<div class="header">
<ul>
<li><a href="?action=">首页</a></li>
<li><a href="?action=list">列表</a></li>
<li><a href="?action=post">新增</a></li>
<li><a href="?action=generate">更新</a></li>
</ul>
</div>

